using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Material.MaterialGroup
{
    /// <summary>
    /// 物料群组修改命令类
    /// </summary>
    public class UpdateMaterialGroupCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string? MaterialNo { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? MaterialName { get; set; }

        /// <summary>
        /// 群组类型ID
        /// </summary>
        public int? GroupTypeId { get; set; }

        /// <summary>
        /// 群组ID
        /// </summary>
        public int? GroupId { get; set; }

        /// <summary>
        /// 群组名称
        /// </summary>
        public string? GroupName { get; set; }

        /// <summary>
        /// 默认工艺路线ID
        /// </summary>
        public int? DefaultCraftId { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? MaterialDesc { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
